/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package comandaXM.classes.manteniment.proveidor;

/**
 *
 * @author xmarti
 */
public class IndexProveidor {
    private int id;    
    private String nomFiscal;
    public IndexProveidor(){
        
    }
    public IndexProveidor(int id, String nomFiscal){
        this.id= id; 
        this.nomFiscal= nomFiscal; 
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNomFiscal() {
        return nomFiscal;
    }

    public void setNomFiscal(String nomFiscal) {
        this.nomFiscal = nomFiscal;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final IndexProveidor other = (IndexProveidor) obj;
        if (this.id != other.id) {
            return false;
        }
        return true;
    }
    
    @Override
    public String toString() {
        return this.nomFiscal;         
    }
}
